<?php /*a:3:{s:58:"D:\wwwroot\127.0.0.1\app\index\view\index/article_show.vue";i:1691378290;s:50:"D:\wwwroot\127.0.0.1\app\index\view\index/meta.vue";i:1691206932;s:52:"D:\wwwroot\127.0.0.1\app\index\view\index/footer.vue";i:1691127323;}*/ ?>
<html lang="zh">
  
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo htmlentities($title); ?> - <?php echo htmlentities($description); ?></title>
    <meta name="keywords" content="<?php echo htmlentities($keywords); ?>">
    <meta name="description" content="<?php echo htmlentities($description); ?>">
    <link rel="stylesheet" type="text/css" href="/static/qhthem/css/bootstrap.css?time=<?php echo time(); ?>" />
    <link rel="stylesheet" type="text/css" href="/static/qhthem/css/layui.css?time=<?php echo time(); ?>" />
    <link rel="stylesheet" type="text/css" href="/static/qhthem/css/fontawesome.min.css?time=<?php echo time(); ?>" />
    <script type="text/javascript" src="/static/js/jquery.min.js?time=<?php echo time(); ?>"></script>
    <script type="text/javascript" src="/static/qhthem/js/bootstrap.bundle.min.js?time=<?php echo time(); ?>"></script>
    <script type="text/javascript" src="/static/qhthem/js/layui.js?time=<?php echo time(); ?>"></script>
    <script type="text/javascript" src="/static/qhthem/js/vue.global.js?time=<?php echo time(); ?>"></script>
    <script type="text/javascript" src="/static/qhthem/js/axios.min.js?time=<?php echo time(); ?>"></script>
    
    </head>
  
  <body>
    <header>
          <nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom fixed-top">
            <div class="container-fluid container">
              <a class="navbar-brand me-5 d-flex align-items-center" href="/">
                <img src="<?php echo htmlentities($site['site_logo']); ?>" height="25"></a>
              <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar">
                <span class="navbar-toggler-icon"></span>
              </button>
              <div class="collapse navbar-collapse" id="navbar">
                <ul class="navbar-nav gap-2 mb-2 mb-lg-0 me-auto">
                   <?php $__CATE__ = D('category')->where('display',1)->order('listorder ASC,id DESC')->select();$__LIST__ = unlimitedForLayer($__CATE__);$__LIST__ =  array_slice($__LIST__, 0,10); if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['sub']): ?>
                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false"><?php echo htmlentities($vo['catname']); ?></a>
                    <ul class="dropdown-menu">
                      <?php if(is_array($vo['sub']) || $vo['sub'] instanceof \think\Collection || $vo['sub'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['sub'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                      <li>
                        <a class="dropdown-item" href="<?php echo htmlentities($v['pclink']); ?>"><?php echo htmlentities($v['catname']); ?></a></li>
                      <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                  </li>
                  <?php else: ?>
                  <li class="nav-item">
                    <a class="nav-link" href="<?php echo htmlentities($vo['pclink']); ?>"><?php echo htmlentities($vo['catname']); ?></a></li>
                  <?php endif; ?>
                  <?php endforeach; endif; else: echo "" ;endif; ?>
                  
                </ul>
                <form class="me-4" action="/search">
                  <input class="form-control" required="" type="search" name="keyword" placeholder="搜索"></form>
                <?php if(!$_userid): ?> 
                <button data-height="340" data-class="modal-dialog-centered" data-toggle="RefreshModal" data-remote="<?php echo url('index/model/login'); ?>" class="btn btn-primary me-1">登录</button>
                <button data-height="340" data-class="modal-dialog-centered" data-toggle="RefreshModal" data-remote="<?php echo url('index/model/register'); ?>" class="btn btn-success">注册</button>
                </div>
                <?php else: ?><ul class="navbar-nav navbar-user align-items-lg-center lg-show flex">
                  <div class="position-relative">
                    <button type="button"  class="me-2 btn btn-primary">
                      <span class="me-1">撰写</span></button>
                    
                  </div>
                 
                  <div class="nav-item position-relative d-none d-lg-block">
                    <a class="dropdown-no-angle nav-link"  href="/user/notifications" style="cursor: pointer;">
                     <i class="me-1 fa-fw far fa-bell"></i>
                      <span class="d-lg-none">通知</span></a>
                  </div>
                  
                  <div class="nav-item position-relative d-none d-lg-block">
                    <a class="dropdown-no-angle nav-link"  href="/user/messages" style="cursor: pointer;">
                      <i class="me-1 fa-fw far fa-envelope"></i>
                      <span class="d-lg-none">私信</span></a>
                  </div>
                  
                  <div class="position-relative ms-2 dropdown">
                    <a href="javascript:;" class="nav-link p-0" data-bs-toggle="dropdown" aria-expanded="false">
                      <div class="position-relative sflex-center rounded-circle flex-shrink-0 " style="width: 32px; height: 32px;">
                        <img src="<?php echo get_avatar($_userid); ?>" alt="头像" class="w-100 h-100 position-absolute left-0 top-0 rounded-circle bg-white"></div>
                      <span class="d-lg-none">我的</span></a>
                    <div id="userDropDown" aria-labelledby="" data-bs-popper="static" class="dropdown-menu dropdown-menu-end" style="width: 238px;">
                      <div class="dropdown-header" role="heading">
                        <div class="d-flex align-items-center">
                          <a href="<?php echo url('member/index/index'); ?>">
                            <div class="position-relative sflex-center rounded-circle flex-shrink-0 me-2" style="width: 32px; height: 32px;">
                              <img src="<?php echo get_avatar($_userid); ?>" alt="头像" class="w-100 h-100 position-absolute left-0 top-0 rounded-circle bg-white"></div>
                          </a>
                          <div class="d-flex flex-column">
                            <a href="<?php echo url('member/index/index'); ?>">
                              <div class="d-flex">
                                <strong class="font-size-14 text-body"><?php echo get_userinfo($_userid,'nickname'); ?></strong>
                                <ul class="list-inline mb-0 authentication-info ms-1"></ul>
                              </div>
                            </a>
                            <a class="text-secondary" href="<?php echo url('member/index/index'); ?>">
                              <div class="user-badge-wrap text-secondary">
                                <?php echo get_groupinfo($_groupid,'name'); ?>
                              </div>
                            </a>
                          </div>
                        </div>
                      </div>
                      <hr class="dropdown-divider" role="separator">
                      <a href="<?php echo url('member/index/index'); ?>" class="font-size-14 bg-white dropdown-item">
                        <div>
                          <strong class="rank-color"><?php echo get_userinfo($_userid,'experience'); ?> 经验</strong></div>
                        <div class="my-1 progress">
                          <div role="progressbar" class="progress-bar bg-primary" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo count_group($_groupid,$_userid); ?>;"><?php echo count_group($_groupid,$_userid); ?></div></div>
                       </a>
                      <hr class="dropdown-divider" role="separator">
                      <a href="/u/buchimangguo_64bdec32b7f39" class="dropdown-item">我的主页</a>
                      <a href="/user/note" class="dropdown-item">我的笔记</a>
                      <a href="/u/buchimangguo_64bdec32b7f39/bookmarks" class="dropdown-item">我的收藏</a>
                      <a href="/user/finance" class="dropdown-item">我的资产</a>
                      <a href="/user/invited" class="d-flex justify-content-between align-items-center dropdown-item">受邀回答</a>
                      <hr class="dropdown-divider" role="separator">
                      <a href="/0x" target="_blank" class="dropdown-item">建议反馈</a>
                      <a href="/help/community/complain" target="_blank" class="dropdown-item">用户申诉</a>
                      <a href="/user/settings" class="dropdown-item">个人设置</a>
                      <hr class="dropdown-divider" role="separator">
                      <a href="<?php echo url('member/login/logout'); ?>" class="dropdown-item dropdown-item">退出登录</a></div>
                  </div>
                </ul><?php endif; ?>
                
            </div>
          </nav>
        </header>
<div  class="pt-3 pt-sm-0 question-content mb-5 container" id="app" style="margin-top:4rem!important;">

  <div class="row">
    <div class="col-xl w-0 col-12">
      <div class="position-relative">
        <div class="sticky-wrap  functional-area-left d-none d-xl-flex justify-content-center pt-5 " style="width:unset;margin-left:-56px;top:0">
          <div role="group" class="align-items-center btn-group-vertical">
            <button @click="like_niew(<?php echo htmlentities($id); ?>,'<?php echo url('index/api/new_like'); ?>')" type="button" aria-label="点赞" class="func-btn mainLike sflex-center shadow-sm rounded-circle main-sm-Like mb-2 btn btn-outline-primary">
              <i class="far fa-thumbs-up"></i>
              <span class="mainLikeNum "><?php echo htmlentities($up); ?></span></button>
            </div>
        </div>
        
        <div class="introduction-wrap bg-white mb-4 card">
          <div class="p-lg-30  card-body">
            <h1 class="h2 mb-3">
              <a class="text-body" href="<?php echo htmlentities($url); ?>"><?php echo htmlentities($title); ?></a></h1>
            <div class="information mb-3  font-size-14">
              <div class="d-flex align-items-center">
                <div class="d-flex">
                  <div class="d-flex align-items-center">
                    <a href="<?php echo user_url($userid); ?>">
                      <div class="position-relative sflex-center rounded-circle flex-shrink-0 me-2" style="width:32px;height:32px">
                        <img src="<?php echo get_avatar($userid); ?>" alt="头像" class="w-100 h-100 position-absolute left-0 top-0 rounded-circle bg-white"></div>
                    </a>
                    <div class="d-flex flex-column">
                      <a href="<?php echo user_url($userid); ?>">
                        <div class="d-flex">
                          <strong class="font-size-14"><?php echo get_userinfo($userid,'nickname'); ?></strong>
                          <ul class="list-inline mb-0 authentication-info ms-1"></ul>
                        </div>
                      </a>
                      <a class="text-secondary" href="<?php echo user_url($userid); ?>">
                        <div class="user-badge-wrap font-size-14 text-secondary">
                          <span class="me-1" style="color:#BF7158;font-weight:bold">
                              <img  height= '14' src="<?php echo get_groupicon(get_userinfo($userid,'groupid')); ?>">
                          </span>
                         
                        </div>
                      </a>
                    </div>
                  </div>
                  <div class="vertical-divider"></div>
                  <div>
                    <a href="javascript:;" class="text-secondary">
                      <time class="text-secondary" itemprop="dateCreated" datetime="<?php echo date('Y-m-d H:i:s',$inputtime); ?>">发布于
                        <br><?php echo date('Y-m-d H:i:s',$inputtime); ?></time></a>
                    </div>
                  <div class="vertical-divider"></div>
                  <div>
                    <a href="javascript:;">
                      <time class="text-secondary" itemprop="dateCreated" datetime="<?php echo date('Y-m-d H:i:s',$updatetime); ?>">更新于
                        <br><?php echo date('Y-m-d H:i:s',$updatetime); ?></time></a>
                  </div>
                </div>
              </div>
            </div>
            <article  class="article fmt article-content">
                <?php echo $content; ?>
            </article>
            <div class="text-secondary mt-3 d-flex flex-wrap justify-content-between">
              <div>
                <span>阅读<?php echo htmlentities($click); ?></span>
                <span class="split-dot"></span>
                <a href="/a/1190000044063477/revision" class="text-secondary">
                  <time datetime="2023-07-31T02:34:11.000Z" itemprop="datePublished">发布于<?php echo date('Y-m-d H:i:s',$inputtime); ?></time></a>
              </div>
              <div class="operation text-end">
                <div>
                  <button type="button" class="text-secondary btn-reset btn btn-link">举报</button></div>
              </div>
            </div>
           <div class="functional-area-bottom text-center">
              <div role="group" class="btn-group like-group align-items-center btn-group">
                <button type="button" @click="like_niew(<?php echo htmlentities($id); ?>,'<?php echo url('index/api/new_like'); ?>')" class="btn me-2 rounded btn btn-outline-primary">
                  <i class="far fa-thumbs-up"></i>
                  <span class="ms-1">赞</span><span class="mainLikeNum ms-1"><?php echo htmlentities($up); ?></span></button>
                <button @click="new_favorite(<?php echo htmlentities($id); ?>,'<?php echo url('index/api/new_favorite'); ?>')" type="button" class="btn me-2 rounded btn btn-outline-secondary">
                  <i class="far fa-bookmark"></i>
                  <span class="ms-1 new_favorite ">收藏</span></button>
                
              </div>
            </div>
           
          </div>
        </div>
      </div>
        <div id="comment-area" class="comment-wrap  card">
          <div class="d-flex align-items-center justify-content-between bg-transparent card-header">
            <strong>0
              条评论</strong>
            
          </div>
          <div class="card-body">
            <div class="mb-4 media">
              <div class="position-relative sflex-center rounded-circle flex-shrink-0 me-3" style="width:38px;height:38px" aria-hidden="true">
                <img src="https://avatar-static.segmentfault.com/955/574/955574209-64cca603f0bed_big64" alt="头像" class="w-100 h-100 position-absolute left-0 top-0 rounded-circle bg-white"></div>
              <div class="media-body" style="width: 100%;">
                <div class="mb-3">
                  <div class="mentions-wrap dropdown">
                    <textarea rows="1" placeholder="撰写评论 …" aria-label="评论" class="comment-text form-control" style="overflow: hidden; overflow-wrap: break-word; resize: none; height: 38px;"></textarea>
                    
                  </div>
                </div>
                <div class="d-flex justify-content-end align-items-center">
                  <button type="button" class="float-end btn btn-primary">提交评论</button></div>
                </div>
            </div>
            <div class="comment-body-wrap d-none"></div>
          </div>
        </div>          
      <div class="mt-4 answer-area card">
        <div class="d-flex align-items-center justify-content-between bg-transparent card-header">
          <strong>3
            
            个回答</strong>
          <div aria-label="Basic" role="group" class="btn-group">
            <a role="button" tabindex="0" href="/q/1010000044083066?sort=votes" class="btn btn-secondary btn-sm">得票</a>
            <a role="button" tabindex="0" href="/q/1010000044083066?sort=newest" class="btn btn-outline-secondary btn-sm">最新</a></div>
        </div>
        <div class="list-group list-group-flush">
          <div class="p-0   undefined list-group-item">
            <div class="sticky-wrap  functional-area-left d-none d-xl-flex justify-content-center pt-5 " style="width:unset;margin-left:-56px;top:0">
              <div role="group" class="align-items-center btn-group-vertical">
                <button type="button" aria-label="点赞" class="func-btn mainLike sflex-center shadow-sm rounded-circle main-sm-Like mb-2 btn btn-outline-primary">
                  <i class="far fa-thumbs-up"></i>
                  <span class="mainLikeNum invisible">0</span></button>
                <button type="button" aria-label="点踩" class="shadow-sm func-btn sflex-center rounded-circle main-sm-Like main-hate mb-3 btn btn-outline-secondary">
                  <i class="far fa-thumbs-down fa-flip-horizontal"></i>
                </button>
              </div>
            </div>
            <canvas hidden="" class="qrcode"></canvas>
            <div class="p-lg-30 p-3  ">
              <div class="commentUnit">
                <div class="information mb-3  font-size-14">
                  <div class="d-flex align-items-center">
                    <div class="d-flex">
                      <div class="d-flex align-items-center">
                        <a href="/u/yangfong">
                          <div class="position-relative sflex-center rounded-circle flex-shrink-0 me-2" style="width:32px;height:32px">
                            <img src="https://avatar-static.segmentfault.com/133/903/1339030900-629e95b86ecf3_big64" alt="头像" class="w-100 h-100 position-absolute left-0 top-0 rounded-circle bg-white"></div>
                        </a>
                        <div class="d-flex flex-column">
                          <a href="/u/yangfong">
                            <div class="d-flex">
                              <strong class="font-size-14">YangFong</strong>
                              <ul class="list-inline mb-0 authentication-info ms-1"></ul>
                            </div>
                          </a>
                          <a class="text-secondary" href="/u/yangfong">
                            <div class="user-badge-wrap font-size-14 text-secondary">
                              <span class="me-1" style="color:#BF7158;font-weight:bold" title="声望值">576</span>
                              <span class="d-inline-block me-1" title="黄金勋章">
                                <i class="user-badge user-badge__gold me-1 fas fa-circle"></i>1</span>
                              <span class="d-inline-block me-1" title="白银勋章">
                                <i class="user-badge user-badge__silver me-1 fas fa-circle"></i>5</span>
                              <span class="d-inline-block" title="青铜勋章">
                                <i class="user-badge user-badge__bronze  me-1 fas fa-circle"></i>11</span>
                            </div>
                          </a>
                        </div>
                      </div>
                      <div class="vertical-divider"></div>
                      <div>
                        <a href="/q/1010000044083066/a-1020000044083157/revision" class="text-secondary">
                          <time itemprop="dateCreated" datetime="2023-08-04T14:08:25.000Z">发布于
                            <br>
                            8 月 4 日</time></a>
                        <span class="font-size-14 text-secondary">
                          上海</span></div>
                    </div>
                  </div>
                </div>
                <article id="1020000044083157" class="article fmt article-content">
                  <p>只计算总利润，那么关注每个元素的
                    <code>price</code>即可。以下是一段伪代码示意：</p>
                  <div class="widget-codetool" style="display: none;">
                    <div class="widget-codetool--inner">
                      <button type="button" class="btn btn-dark rounded-0 sflex-center copyCode" data-toggle="tooltip" data-placement="top" data-clipboard-text="CALC(A)
                      R = 0
                      N = A.length
                      for i in 0..N
                      P = A[i].price
                      if P <= 300
                      R += P * 0.3
                      else if P <= 500
                      R += P * 0.2
                      else 
                      R += P * 0.1
                      return R" aria-label="复制" data-bs-original-title="复制">
                        <i class="far fa-copy"></i>
                      </button>
                    </div>
                  </div>
                  <pre class="txt hljs language-plaintext">CALC(A) R = 0 N = A.length for i in 0..N P = A[i].price if P &lt;= 300 R += P * 0.3 else if P &lt;= 500 R += P * 0.2 else R += P * 0.1 return R</pre>
                  <p>若是计算的同时又需要修改，则可以加上这些：</p>
                  <div class="widget-codetool" style="display: none;">
                    <div class="widget-codetool--inner">
                      <button type="button" class="btn btn-dark rounded-0 sflex-center copyCode" data-toggle="tooltip" data-placement="top" data-clipboard-text="CALC(A)
                      R = 0
                      N = A.length
                      for i in 0..N
                      P = A[i].price
                      if P <= 300
                      R += P * 0.3
                      +           A[i].price *= 1.3
                      else if P <= 500
                      R += P * 0.2
                      +           A[i].price *= 1.2
                      else 
                      R += P * 0.1
                      +           A[i].price *= 1.1;
                      return R" aria-label="复制" data-bs-original-title="复制">
                        <i class="far fa-copy"></i>
                      </button>
                    </div>
                  </div>
                  <pre class="diff hljs language-diff">CALC(A) R = 0 N = A.length for i in 0..N P = A[i].price if P &lt;= 300 R += P * 0.3
                    <span class="hljs-addition">+ A[i].price *= 1.3</span>else if P &lt;= 500 R += P * 0.2
                    <span class="hljs-addition">+ A[i].price *= 1.2</span>else R += P * 0.1
                    <span class="hljs-addition">+ A[i].price *= 1.1;</span>return R</pre></article>
                <div class="text-secondary font-size-14 d-flex flex-column">
                  <div class="functional-area-bottom ">
                    <div aria-label="Basic" title="" role="group" class="me-2 mb-3 d-xl-none btn-group">
                      <button type="button" class="false btn btn-outline-primary btn-sm">
                        <i class="far fa-thumbs-up"></i>
                        <span class="mx-1">赞</span>
                        <span class="mainLikeNum hidden">0</span></button>
                      <button type="button" class="false btn btn-outline-secondary btn-sm">
                        <i class="far fa-flip-horizontal fa-thumbs-down"></i>
                      </button>
                    </div>
                  </div>
                  <div class="d-flex justify-content-between align-items-center flex-fill">
                    <div class="sflex-center">
                      <button type="button" class="btn-reset text-secondary question-reply-btn btn btn-link">回复</button></div>
                    <div class="operation text-end"></div>
                  </div>
                </div>
              </div>
              <div class="lazyload-wrapper ">
                <div tabindex="2" class="bg-light border-0 mt-2 hidden card">
                  <div class="card-body">
                    <div class="media-body">
                      <div class="mb-3">
                        <div class="mentions-wrap dropdown">
                          <textarea rows="1" placeholder="给问答点赞就是支持，请勿在评论里发布“+1、感谢”等信息" class="comment-text form-control form-control-sm" style="overflow: hidden; overflow-wrap: break-word; resize: none;"></textarea>
                          <div class="invalid-feedback"></div>
                          <div class="dropdown-toggle"></div>
                        </div>
                      </div>
                      <div class="d-flex flex-md-row flex-column justify-content-md-between align-items-md-center">
                        <small class="text-secondary">评论用于指出存在的问题，提醒作者澄清改进，请勿在评论里回答或补充信息</small>
                        <div class="d-flex align-items-center justify-content-end">
                          <button type="button" aria-label="提示" class="me-3 btn-reset btn btn-link">
                            <i class="far fa-circle-info text-secondary"></i>
                          </button>
                          <button type="button" aria-label="提示" class="me-3 btn-reset btn btn-link">
                            <i class="far fa-face-laugh text-secondary"></i>
                          </button>
                          <button type="button" disabled="" class="float-end btn btn-primary btn-sm">提交评论</button></div>
                      </div>
                    </div>
                    <div role="alert" class="fade mt-3 my-0 font-size-14 alert alert-info show">评论支持部分 Markdown 语法：
                      <code>**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 &gt; 引用</code>。你还可以使用
                      <code>@</code>来通知其他用户。</div></div>
                </div>
                <div id="comment-area" class="comment-wrap hidden card">
                  <div class="p-3 card-body">
                    <div class="comment-body-wrap d-none"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
         
        </div>
      </div>
      <div id="answer-question" style="width:100%" class="mt-4 card">
        <div class="bg-transparent d-flex justify-content-between align-items-center card-header">
          <strong>撰写回答</strong>
          <div></div>
        </div>
        <div class="card-body">
          <h6>你尚未登录，登录后可以</h6>
          <ul class="list-inline">
            <li class="card-text">
              <i class="far fa-circle-check me-2 text-success"></i>和开发者交流问题的细节</li>
            <li>
              <i class="far fa-circle-check me-2 text-success"></i>关注并接收问题和回答的更新提醒</li>
            <li>
              <i class="far fa-circle-check me-2 text-success"></i>参与内容的编辑和改进，让解决方法与时俱进</li>
          </ul>
          <div>
            <button type="button" class="me-2 require-login btn btn-primary">注册登录</button></div>
        </div>
      </div>
      <div class="mt-4 card">
        <div class="bg-transparent card-header">
          <strong>推荐问题</strong></div>
        <ul class="list-group list-group-flush">
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043448010?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">自增主键不会暴露数据吗?</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">假如有一个get请求的接口，传的参数是id = 1这样子的，那么不是可以被用户拿到所有的数据了吗 {代码...} 像这种情况怎么处理呀如果这个情况的话，被别人调用了删除的接口不是很恐怖吗，因为删除接口也是传一个id过去后端就删除了</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">10
                  回答</span>
                <span class="split-dot"></span>
                <span>5.4k
                  阅读</span></p>
            </a>
          </li>
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043565060?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">循环1M大小二维数组matrix[x][y] ，下面哪种方式更快，并解释原理?</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">循环1M大小二维数组matrixx ，下面哪种方式更快，并解释原理 {代码...}</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">6
                  回答</span>
                <span class="split-dot"></span>
                <span>1.4k
                  阅读</span></p>
            </a>
          </li>
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043640105?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">我设置线程为1kb 但是copy的字节数是2kb为啥内存没有溢出呢？</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">我设置线程为1kb 但是copy的字节数是2kb为啥内存没有溢出呢</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">4
                  回答</span>
                <span class="split-dot"></span>
                <span>1.2k
                  阅读</span>
                <span class="ms-3 badge rounded-pill bg-success">✓ 已解决</span></p>
            </a>
          </li>
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043938427?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">Java项目中如何同时使用两个版本的jar?</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">1.背景项目里已经引入了bcprov-jdk15on-1.54.jar,并且在很多地方使用.现在合作方给过来一套新的接入资料,里面有以下jar包. {代码...} 2.问题项目中的bcprov-jdk15on存在两个版本,旧的是1.54,新的是1.69.类似于下面这张图:由于很多地方用到了1.54版本,所以不能直接升级到1.69.现在想实现以下两点:对于本次的新版本,其中的...</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">7
                  回答</span>
                <span class="split-dot"></span>
                <span>1.6k
                  阅读</span></p>
            </a>
          </li>
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043914120?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">为什么Postman中使用post进行请求也可以用URL传参？</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">如图，在postman里我选择的post协议，但是它自动在URL里添加了参数，而且测试下来后端能正常收到请求。但是我记得post请求是不能在URL里添加参数的，是在请求头里添加的。有谁知道为什么这里可以吗？是不是postman的问题呢？</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">4
                  回答</span>
                <span class="split-dot"></span>
                <span>374
                  阅读</span>
                <span class="ms-3 badge rounded-pill bg-success">✓ 已解决</span></p>
            </a>
          </li>
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043894194?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">基于session实现用户登录？</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">最近在研究基于session实现用户登录的功能时，突然对 服务端session校验的过程感到疑惑，之前都是通过拿到cookie中的sessionid然后通过session!=null去判断用户是否登录</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">2
                  回答</span>
                <span class="split-dot"></span>
                <span>865
                  阅读</span>
                <span class="ms-3 badge rounded-pill bg-success">✓ 已解决</span></p>
            </a>
          </li>
          <li class="py-3 list-group-item list-group-item-action">
            <a href="/q/1010000043815034?utm_source=sf-similar-question" target="_blank">
              <h5 class="text-break text-body">java ，多个线程为什么要 “抢夺”cpu的执行权 ？ 比如有4个 thread 线程，然后cpu也是4核 ， 那不就是刚好 一个核对应一个线程吗 ， 就不用抢夺了呀 ？</h5>
              <div class="text-secondary text-truncate-1 font-size-14 mb-2">java ，多个线程为什么要 “抢夺”cpu的执行权 ？ 比如有4个 thread 线程，然后cpu也是4核 ， 那不就是刚好 一个核对应一个线程吗 ， 就不用抢夺了呀 ？</div>
              <p class="text-secondary mb-0 font-size-14">
                <span class="text-primary">6
                  回答</span>
                <span class="split-dot"></span>
                <span>1.1k
                  阅读</span></p>
            </a>
          </li>
        </ul>
      </div>
    </div>
    <div class="col-xl-auto w-xl-300 d-none d-xl-block p-0 right-side col-12">
      <div id="right-side-wrap">
        <div class="sticky-outer-wrapper" style="">
          <div class="sticky-inner-wrapper" style="position: relative; top: 0px;">
            <div class="">
              <div id="first-ad" class="border-0 overflow-hidden sflex-center float-ads mb-4 d-none card d-xl-flex">
                <div id="OA_holder_1" class="ad-container" style="display:block">
                  <div style="line-height: 0">
                    <a href="https://sponsor.segmentfault.com/ck.php?oaparams=2__bannerid=793__zoneid=1__cb=3533312a45__oadest=https%3A%2F%2Fjinshuju.net%2Ff%2FTIj3nO" target="_blank">
                      <img src="https://sponsor-static.segmentfault.com/2cbbc2ced4e93553def4a5c70890d697.png" width="300" height="250" alt="" title="" border="0"></a>
                    <div id="beacon_3533312a45" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                      <img src="https://sponsor.segmentfault.com/lg.php?bannerid=793&amp;campaignid=200&amp;zoneid=1&amp;loc=https%3A%2F%2Fsegmentfault.com%2Fq%2F1010000044083066&amp;referer=https%3A%2F%2Fsegmentfault.com%2Fquestions&amp;cb=3533312a45" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div>
                  </div>
                  
                </div>
              </div>
            </div>
            <div class="">
              <div class="card">
                <div class="bg-transparent card-header">
                  <strong>相似问题</strong></div>
                <ul class="list-group list-group-flush">
                  <li class="py-2 list-group-item list-group-item-action">
                    <a href="/q/1010000018000091?utm_source=sf-similar-question" target="_blank">
                      <div class="text-break text-body text-truncate-2">java 实现计费算法</div>
                      <p class="text-secondary mb-0 font-size-14">
                        <span class="text-primary">1 回答</span>
                        <span class="split-dot"></span>
                        <span>5.1k 阅读</span></p>
                    </a>
                  </li>
                  <li class="py-2 list-group-item list-group-item-action">
                    <a href="/q/1010000013880917?utm_source=sf-similar-question" target="_blank">
                      <div class="text-break text-body text-truncate-2">java模板引擎哪个最好用？</div>
                      <p class="text-secondary mb-0 font-size-14">
                        <span class="text-primary">2 回答</span>
                        <span class="split-dot"></span>
                        <span>8.8k 阅读</span></p>
                    </a>
                  </li>
                  <li class="py-2 list-group-item list-group-item-action">
                    <a href="/q/1010000009067620?utm_source=sf-similar-question" target="_blank">
                      <div class="text-break text-body text-truncate-2">在VIJOS上用Java实现算法出现的问题</div>
                      <p class="text-secondary mb-0 font-size-14">
                        <span class="text-primary">1 回答</span>
                        <span class="split-dot"></span>
                        <span>3k 阅读</span>
                        <span class="ms-3 badge rounded-pill bg-success">✓ 已解决</span></p>
                    </a>
                  </li>
                  <li class="py-2 list-group-item list-group-item-action">
                    <a href="/q/1010000041511981?utm_source=sf-similar-question" target="_blank">
                      <div class="text-break text-body text-truncate-2">java或者go算法转PHP实现</div>
                      <p class="text-secondary mb-0 font-size-14">
                        <span>788 阅读</span></p>
                    </a>
                  </li>
                  <li class="py-2 list-group-item list-group-item-action">
                    <a href="/q/1010000010268980?utm_source=sf-similar-question" target="_blank">
                      <div class="text-break text-body text-truncate-2">POI XWPFDocument 来实现这个功能</div>
                      <p class="text-secondary mb-0 font-size-14">
                        <span class="text-primary">1 回答</span>
                        <span class="split-dot"></span>
                        <span>8.3k 阅读</span>
                        <span class="ms-3 badge rounded-pill bg-success">✓ 已解决</span></p>
                    </a>
                  </li>
                </ul>
                <div class="bg-transparent text-center border-top py-2 card-footer">找不到问题？
                  <a href="/ask" target="_blank">创建新问题</a></div>
              </div>
            </div>
            <div class="my-4 ">
              <div class="d-flex card">
                <div class="bg-white border-0 card-header">
                  <strong>宣传栏</strong></div>
                <div class="card-body">
                  <div class="mb-3">
                    <div id="OA_holder_7" class="ad-container" style="display:block">
                      <a href="https://sponsor.segmentfault.com/ck.php?oaparams=2__bannerid=401__zoneid=7__cb=5f1963aa3c__oadest=https%3A%2F%2Fke.segmentfault.com%2Fcourse%2F1650000037474720%3Futm_source%3Dsegmentfault%26utm_medium%3Dbanner_Tlink" target="_blank">
                        <strong>专家带你构建一个高性能秒杀系统</strong>
                        <br>
                        <small style="color: #6c757d">大厂电商 Java 秒杀系统架构实战</small></a>
                      <div id="beacon_5f1963aa3c" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                        <img src="https://sponsor.segmentfault.com/lg.php?bannerid=401&amp;campaignid=14&amp;zoneid=7&amp;loc=https%3A%2F%2Fsegmentfault.com%2Fq%2F1010000044083066&amp;referer=https%3A%2F%2Fsegmentfault.com%2Fquestions&amp;cb=5f1963aa3c" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div>
                      
                    </div>
                  </div>
                  <div class="mb-3">
                    <div id="OA_holder_9" class="ad-container" style="display:block">
                      <a href="https://sponsor.segmentfault.com/ck.php?oaparams=2__bannerid=761__zoneid=9__cb=f008dad939__oadest=https%3A%2F%2Fsegmentfault.com%2Fbookmark%2F1230000043492140" target="_blank">
                        <strong>痛点消除：社区精选 100 问</strong>
                        <br>
                        <small style="color: #6c757d">2022 年 SegmentFault 思否社区精选问答</small></a>
                      <div id="beacon_f008dad939" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                        <img src="https://sponsor.segmentfault.com/lg.php?bannerid=761&amp;campaignid=14&amp;zoneid=9&amp;loc=https%3A%2F%2Fsegmentfault.com%2Fq%2F1010000044083066&amp;referer=https%3A%2F%2Fsegmentfault.com%2Fquestions&amp;cb=f008dad939" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div>
                      
                    </div>
                  </div>
                  <div>
                    <div id="OA_holder_10" class="ad-container" style="display:block">
                      <a href="https://sponsor.segmentfault.com/ck.php?oaparams=2__bannerid=762__zoneid=10__cb=0c85478806__oadest=https%3A%2F%2Fsegmentfault.com%2Fbookmark%2F1230000043492181" target="_blank">
                        <strong>无师自通：社区精选 100 篇</strong>
                        <br>
                        <small style="color: #6c757d">2022 年 SegmentFault 思否社区精选文章</small></a>
                      <div id="beacon_0c85478806" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                        <img src="https://sponsor.segmentfault.com/lg.php?bannerid=762&amp;campaignid=14&amp;zoneid=10&amp;loc=https%3A%2F%2Fsegmentfault.com%2Fq%2F1010000044083066&amp;referer=https%3A%2F%2Fsegmentfault.com%2Fquestions&amp;cb=0c85478806" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div>
                      
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="d-none d-xl-block">
              <div id="OA_holder_31" class="ad-container" style="display:block">
                <div id="beacon_3c647dba22" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                  <img src="https://sponsor.segmentfault.com/lg.php?bannerid=0&amp;campaignid=0&amp;zoneid=31&amp;loc=https%3A%2F%2Fsegmentfault.com%2Fq%2F1010000044083066&amp;referer=https%3A%2F%2Fsegmentfault.com%2Fquestions&amp;cb=3c647dba22" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="d-block d-sm-none fix-bottom-action-wrap">
    <div class="w-100 fixed-bottom-action d-flex align-items-center ">
      <button type="button" aria-label="浏览" class="btn-reset text-center text-body w-25 btn btn-link">
        <i class="far fa-eye"></i>
        <span class="mainLikeNum ms-1">100</span></button>
      <button type="button" aria-label="收藏" class="btn-reset text-center text-body w-25 btn btn-link">
        <i class="far fa-bookmark"></i>
      </button>
      <a class="text-center text-body w-25" href="#comment-area">
        <i class="far fa-message-lines"></i>
      </a>
      <button type="button" aria-label="分享" class="btn-reset text-center text-body w-25 btn btn-link">
        <i class="far fa-share-nodes text-body"></i>
      </button>
    </div>
    <canvas hidden="" class="qrcode"></canvas>
  </div>
</div>
<script type="text/javascript" src="/static/qhthem/js/form.js?time=<?php echo time(); ?>"></script>
      <footer  class="d-none d-sm-block bg-white py-3 font-size-14 border-top">
        <div class="container">
         
          <div class="row">
            <div class="col-md-8">
              <div class="text-secondary">
                <p class="mb-1"><?php echo htmlentities($site['site_copyright']); ?></p>
                <p class="mb-1">
                  <a target="_blank" href="https://beian.miit.gov.cn/"><?php echo htmlentities($site['site_filing']); ?></a>
                  </p>
               </div>
            </div>
            
          </div>
        </div>
      </footer>
    </div>
<script type="text/javascript">
 window._win = {
     
 }
</script>
<script type="text/javascript" src="/static/qhthem/js/mian.js?time=<?php echo time(); ?>"></script>
   
  </body>

</html>
